As shown in Figure 4, you get a blank screen, a horizontal rule, and a return value of 1.
您得到的是一个空白的屏幕,一条水平线和返回值1,如图4所示。
If not valid, return a blank Ajax response to the client.
如果无效,则向客户端返回空的Ajax响应。
Unfortunately, the way doctest parses apparent sessions treats blank lines as ending sessions — so output like the return value of pyobj_printer needs to be munged slightly to be tested.
不幸的是,doctest在解析显式会话时,将空行作为会话结束来处理——所以,像pyobj_printer的返回值这样的输出需要加一些保护(be munged slightly)以进行测试。
应用推荐